package com.qf.hytrix;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableHystrixDashboard // 开启 hystrix监控功能
@ServletComponentScan("com.qf.hytrix.servlet")
public class HystrixDemoApp {
    public static void main(String[] args) {
        SpringApplication.run(HystrixDemoApp.class,args);
    }
}
